package cn.neusoft.feignClients.fallback;

import cn.neusoft.domain.Commodity;
import cn.neusoft.feignClients.CommodityFeignClient;
import cn.neusoft.vo.ResultBean;
import org.springframework.stereotype.Component;

@Component
public class CommodityClientFallBack implements CommodityFeignClient {
    @Override
    public ResultBean<Commodity> getById(String id) {
        return ResultBean.error(600,"客服中心异常，熔断降级");
    }
}
